package com.nf.xiaomi.dao;

import com.nf.xiaomi.entity.OrderEntity;

import java.util.List;

public interface OrderDao {
    List<OrderEntity> getAll();

    List<OrderEntity> getAll(Integer orderState);

    List<OrderEntity> getAll(Long account);

    Integer insert(OrderEntity order);

    Integer update(Integer userID,Integer orderID,Integer state);

    Integer deleteByID(Integer userID, Integer orderID);

    List<OrderEntity> total();

    List<OrderEntity> confirmOrder(Long account, Integer orderID);

    Long paymentCount(Integer userID);

    Long goodsCount(Integer userID);

    Long recycleCount(Integer userID);
}
